package com.gcb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gcb.domain.entity.ShipCXInfo;
import com.gcb.domain.vo.CXShipVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ShipCXInfoMapper extends BaseMapper<ShipCXInfo> {
    /**
     * 根据mmsi查询船舶信息
     * @param mmsiList mmsi码
     * @return 已经存在的mmsi码
     */
    List<String> selectByMmsiList(@Param("mmsiList") List<String> mmsiList);

    List<CXShipVO> selectByNameList(@Param("nameList") List<String> nameList);
}
